app.controller('studentController', function($scope, $http, $controller,
		studentService) {

	// 继承baseController
	$controller('baseController', {
		$scope : $scope
	});
	$scope.findAll = function() {
        studentService.findAll().success(function(response) {
			$scope.list = response;
		});

	}
    $scope.searchEntity={}
    $scope.search = function() {
        studentService.search($scope.searchEntity.date2).success(function(response) {
            $scope.list = response;
        });
    }
    $scope.search2 = function() {
        studentService.search2($scope.searchEntity.date2).success(function(response) {
            $scope.list = response;
        });
    }



});